class fly_pak
{
public:
char *buf;
unsigned long pos, len;
fly_pak();
void seek(long offset);
bool open(char *filename);
void close();
int read(void *dest, int size);
void get_profile_string(char *section, char *key, char *dest);
void get_string(char *dest);
int get_int();
float get_float();
FILE *get_fp(char *filename);
~fly_pak();
};
Member | Type | Description |
---|---|---|
buf | char * | file buffer |
pos | unsigned long | position inside buffer |
len | unsigned long | length of buffer |
seek, open, close, read, get_profile_string, get_string, get_int, get_float, get_fp
This class implements the loading of files. It should be used as it can read standalone files or files included in .fpk packages. The .fpk file is a group of files that are packed into a single file. When opening a file, first it tries to open the standalone file, and if it fails to find the file, it looks up the file path for a .fpk file that could contain the desired file.